import com.xiangshi.core.support.security.Hex;
import com.xiangshi.core.support.security.coder.SHACoder;

public class Main {

    public static void main(String[] args) {
        String passwd = "123456";
        String SHAPassword = null;
        try {
            SHAPassword = Hex.encodeHexString(SHACoder.encodeSHA1(passwd.getBytes()));
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println(SHAPassword);
    }
}
